package com.example.pceb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pceb.entity.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.tomcat.websocket.BackgroundProcess;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface SchoolMapper extends BaseMapper<School> {
    @Select("SELECT COUNT(*) FROM school")
    int countAllSchools();
}
